import Redirect from 'umi/redirect';

export default props => {
    var random = Math.random();
    console.info(random);
    if (random > 0.5) {
        return <Redirect to="/login" />
    } else {
        return (<div>
            {props.children}
        </div>)
    }
}